<template>
  <div class="page">
    <headerTItle :CNtitle="`热门Q&A`" :ENtitle="`FRENQUENTLY QUESTION`"></headerTItle>
    <div class="oneBox">
       <div>
          <el-tabs v-model="activeTab" type="card" @tab-click="handleClick">
            <el-tab-pane label="展商分类1" name="1"> </el-tab-pane>
            <el-tab-pane label="展商分类2" name="2"></el-tab-pane>
            <el-tab-pane label="展商分类3" name="3"></el-tab-pane>
            <el-tab-pane label="展商分类4" name="4"></el-tab-pane>
          </el-tabs>
        </div>
        <div class="collapseBox">
          <el-collapse v-model="activeName" accordion>
            <el-collapse-item title="一致性 Consistency" name="1">
              <div>与现实生活一致：与现实生活的流程、逻辑保持一致，遵循用户习惯的语言和概念；</div>
              <div>在界面中一致：所有的元素和结构需保持一致，比如：设计样式、图标和文本、元素的位置等。</div>
            </el-collapse-item>
            <el-collapse-item title="反馈 Feedback" name="2">
              <div>控制反馈：通过界面样式和交互动效让用户可以清晰的感知自己的操作；</div>
              <div>页面反馈：操作后，通过页面元素的变化清晰地展现当前状态。</div>
            </el-collapse-item>
            <el-collapse-item title="效率 Efficiency" name="3">
              <div>简化流程：设计简洁直观的操作流程；</div>
              <div>清晰明确：语言表达清晰且表意明确，让用户快速理解进而作出决策；</div>
              <div>帮助用户识别：界面简单直白，让用户快速识别而非回忆，减少用户记忆负担。</div>
            </el-collapse-item>
            <el-collapse-item title="可控 Controllability" name="4">
              <div>用户决策：根据场景可给予用户操作建议或安全提示，但不能代替用户进行决策；</div>
              <div>结果可控：用户可以自由的进行操作，包括撤销、回退和终止当前操作等。</div>
            </el-collapse-item>
          </el-collapse>
        </div>
    </div>
  </div>
</template>

<script>
import headerTItle from "@/components/headerTItle.vue";
export default {
  data() {
    return {
      activeTab: '1',
      activeName: '1'
    };
  },
  methods: {
    handleClick(tab) {
      this.activeTab = tab.name;
    }
  },
  components: {
    headerTItle,
  },
};
</script>

<style scoped lang="scss">
@import "@/assets/styles/_variables.scss";
  ::v-deep .el-tabs__item {
  padding: 25px 47px !important;
  font-size: 30px;
  color: #000;
  height: auto;
}
.collapseBox{
  margin-top: 2.8125rem;
}
.oneBox{
  padding: 6.125rem 15rem;
  box-sizing: border-box;
  width: 100%;
}
::v-deep .el-collapse-item__header{
  font-size: 1.25rem;
}
::v-deep .el-collapse-item__content{
  font-size: 1.125rem;
  background: #e4e4e4;
}

::v-deep .el-tabs__item.is-active {
  background: #1b6acc;
  color: #fff;
}
::v-deep .is-top {
  border: none !important;
  display: flex;
  justify-content: center;
}
::v-deep .el-tabs__header {
  margin: 0 !important;
}
::v-deep .el-divider {
  background-color: #000;
}
::v-deep .el-tabs__item {
  padding: 0.5rem 1.25rem !important;
  font-size: 1.125rem;
  margin-right: 1.5rem;
  border-radius: 0.5rem;
  background: #f5f5f5;
  color: $btn-color;
}
</style>
